package com.lg.business.service;

import com.lg.redis.config.RedisService;
import org.jasypt.encryption.StringEncryptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TextLoads {

    @Autowired
    StringEncryptor encryptor;


    public void contextLoads() {
        // 加密root
        String username = encryptor.encrypt("root");
        System.out.println(username);
        // 加密123
        String password = encryptor.encrypt("admin");
        System.out.println(password);

        // System.out.println(value + " " + user + " " + password);
    }
}
